﻿<%@ Page Language="C#" MasterPageFile="~/Hero.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" Title="Search" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<h1 class="mainTitle">Search songs</h1>
	<asp:Panel ID="pnlSearch" runat="server" DefaultButton="btnSearch">
		Song title or artist name: 
		<asp:TextBox ID="txtKeyword" runat="server" ></asp:TextBox>
		<asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" Text="Search" />	
	</asp:Panel>	
	<br />
	<div >
	<asp:GridView ID="gvResults" runat="server" AutoGenerateColumns="False" ShowHeader="False">
		<Columns>
			<asp:TemplateField>
				<ItemTemplate>
				<div class="topResults">
					<asp:HyperLink ID="HyperLink1" runat="server" 
				NavigateUrl='<%# Eval( "Url" ) %>' Text='<%# Eval( "Text" ) %>'></asp:HyperLink>
				</div>
				</ItemTemplate>
				<AlternatingItemTemplate>
				<div class="topResultsAlternate">
					<asp:HyperLink ID="HyperLink1" runat="server"
				NavigateUrl='<%# Eval( "Url" ) %>' Text='<%# Eval( "Text" ) %>'></asp:HyperLink>
				</div>
				</AlternatingItemTemplate>
			</asp:TemplateField>
		</Columns>
		<EmptyDataTemplate>
			No results matching your search were found.
		</EmptyDataTemplate>
		</asp:GridView>	
	</div>	
	<br />
</asp:Content>

